|
|
|
|
|
|
|
As you can see, Visual Basic shares a lot of elements with other Windows programs. The toolbars and menus look similar to those in Office 97. A few of the menu items are the same: File, Edit, Help, and others. |
|
|
|
|
|
|
|
|
Many programmers want to find quick keyboard shortcuts for frequently used tasks. As with other Windows programs, the menus at the top of the Visual Basic screen can be displayed by holding down the Alt key while pressing the appropriate underlined character in the menu bar. After the initial menu is displayed, you can simply press the underlined character of a menu item to select it. For example, press Alt+F to open the File menu, and then press P to choose the Print command. |
|
|
|
|
|
|
|
|
Visual Basic also offers several shortcut keys that let you bypass the menu entirely. Most of them are listed to the right of their respective menu items. For example, in the View menu, you might notice F2 to the right of Object Browser. This means that you can see the Object Browser by pressing F2. Although I have listed some quick shortcuts in Table A.1, a quick perusal of the menus would definitely be worth your while. |
|
|
|
|
| Table A.1 Shortcut Keys | | Menu Item | Shortcut Key | Description | | Edit, Cut | Ctrl+X | Removes the selected text or control from its current location and copies it to the Clipboard. | | Edit, Copy | Ctrl+C | Makes a copy of the selected text or control on the Clipboard, but does not remove it from its original location. | | Edit, Paste | Ctrl+V | Pastes the contents of the Clipboard to the active form or code window. | | Edit, Undo | Ctrl+Z | Undoes the last change. | | Edit, Find | Ctrl+F | Finds a piece of text. (You must be in an edit window to use this command.) | | File, Open | Ctrl+O | Opens a project. | | File, Save | Ctrl+S | Saves the current file. | | File, Print | Ctrl+P | Displays the Print dialog box, from which you can print the current form or module or the entire application. | | View, Project Explorer | Ctrl+R | Shows the Project Explorer window (if it's not already displayed). | | View, Properties Window | F4 | Shows the Properties window (if it's not already displayed). |
|
|
|